<?php

require_once("config.inc.php");
require_once(INCLUDE_PATH . "db.inc.php");
require_once(INCLUDE_PATH . "user.inc.php");
require_once(INCLUDE_PATH . "blog.inc.php");
require_once(INCLUDE_PATH . "function.inc.php");

ob_start();
session_start();

$blog = new Blog();
$user = new User();
$blog_info = $blog->GetBlogInfo(1);//博客信息
$blog_user = $blog->getInfo(1,'ee_blog_user'); //关联表
$user_info = $blog->getInfo($blog_user['F_ID_USER_INFO'],'em_user_info'); //用户信息
$action = (!isset($_GET['Action'])) ? "List" : $_GET['Action'];

//一级分类设置
$cat1 = $blog->GetCatList(1, 'ee_blog_categories1');
$cat1FID = $_GET['Cat1'];
if(!isset($cat1FID))$cat1FID = 1;
$cat1info = $blog->getInfo($cat1FID, 'ee_blog_categories1');

include(TEMPLATE_PATH . "header.php");

require(TEMPLATE_PATH . "$action" . ".php");
?>
<script type="text/javascript">
E.on(window, 'load', function(){
	
	jav.effect.shrinkMenu({
		onOff : 'option'
	});
	
});
</script>
<?php
include(TEMPLATE_PATH . "footer.php");

?>